$NG.AllReady(function (page, { useAction, useBeforeClick, useValuesChange, useClick, useUpdateRow, subscribe, useUpdateRows }) {
    const mstform = $NG.getCmpApi("form")

    if (!mstform.getItem("user_tbnd").getValue()) {
        mstform.getItem("user_tbnd").setValue({
            label: new Date().getFullYear(),
            value: new Date().getFullYear(),
        })
    }
    setTitle()
    function setTitle() {
        if (!mstform.getItem("user_wh").getValue()) {
            const year = new Date().getFullYear()
            const orgName = $NG.getUser().orgName
            let num = 1
            $NG.execServer("getJsfaCountByOrg", { year }, (res) => {
                const data = JSON.parse(res.data)[0].extendObjects
                if ((Number(data.num) || 0) != 0) {
                    num = data.num
                }
                const title = `技案-[${year}]-${orgName}-${num}`
                mstform.getItem("user_wh").setValue(title)
            })
        }
    }

})